<template>
    <fieldset>
        <legend>朋友</legend>
        <h1>孟川</h1>
        <h1>元</h1>
    </fieldset>
</template>
<script >
//动态路由参数
export default{
    props: ['id'],
    mounted(){
        console.log(this.$route.params);
        console.log(this.id);
    },
watch: {
    $route(newVal){
        console.log(newVal);
    },
    id(newVal){
        console.log(newVal);
    }
}
}





</script>